#!/usr/bin/env node
//输出__filename和__dirname
const log = console.log;
log('file name:', __filename);
log('dir name:', __dirname);

//拼接'views'子目录中'view.html'的路径
const path = require('path');
const filePath = path.join(__dirname, 'views', 'view.html');
console.log('Path to view.html:', filePath);

